<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<script type="text/javascript" src="scripts/boot.js"></script>
</head>
<body style="border: 0px; margin: 0px; padding: 0px;width: 100%;height: 100%">
	<div id="tabs1" class="mini-tabs" activeIndex="0"  style="width: 100%;height: 100%">
    <div title="出库">
        <div class="mini-fit" >
		<div id="datagrid1" class="mini-datagrid" idField="id" pageSize="20" url="recall_medicine_detail.do" style="width:100%;height:100%;">
			<div property="columns" >
				<div type="indexcolumn"></div>
				<div field="medicineSerialNum" width="100" headerAlign="center" align="center">药品编号</div>
				<div field="medicineName" width="100" headerAlign="center" align="center">药品名称</div>
				<div field="medicineUnit" width="100" headerAlign="center" align="center">单位</div>
				<div field="quantity" width="100" headerAlign="center" align="center">出库量</div>
				<div field="createTime" dataType="date" dateFormat="yyyy-MM-dd HH:mm:ss" width="100" headerAlign="center" align="center">时间</div>
			</div>
		</div>
		</div>
    </div>
    <div title="入库" >
        <div class="mini-fit" >
		<div id="datagrid2" class="mini-datagrid" idField="id" pageSize="20" url="storage_medicine_detail.do" style="width:100%;height:100%;">
			<div property="columns" >
				<div type="indexcolumn"></div>
				<div field="medicineNo" width="100" headerAlign="center" align="center">药品编号</div>
				<div field="name" width="100" headerAlign="center" align="center">药品名称</div>
				<div field="medicineUnit" width="100" headerAlign="center" align="center">单位</div>
				<div field="quantity" width="100" headerAlign="center" align="center">入库量</div>
				<div field="createTime" dataType="date" dateFormat="yyyy-MM-dd HH:mm:ss" width="100" headerAlign="center" align="center">时间</div>
			</div>
		</div>
		</div>
    </div>
    <div title="库间调拨（本仓库调出）" >
        <div class="mini-fit">
		<div id="datagrid3" class="mini-datagrid" idField="id" pageSize="20" url="allocation_out.do" style="width:100%;height:100%;">
			<div property="columns" >
				<div type="indexcolumn"></div>
				<div field="medicineSerialNum" width="100" headerAlign="center" align="center">药品编号</div>
				<div field="medicineName" width="100" headerAlign="center" align="center">药品名称</div>
				<div field="medicineUnit" width="100" headerAlign="center" align="center">单位</div>
				<div field="quantity" width="100" headerAlign="center" align="center">数量</div>
				<div field="createTime" dataType="date" dateFormat="yyyy-MM-dd HH:mm:ss" width="100" headerAlign="center" align="center">时间</div>
			</div>
		</div>
		</div>
    </div>
    <div title="库间调拨（其他仓库调入）" >
        <div class="mini-fit">
		<div id="datagrid5" class="mini-datagrid" idField="id" pageSize="20" url="allocation_in.do" style="width:100%;height:100%;">
			<div property="columns" >
				<div type="indexcolumn"></div>
				<div field="medicineSerialNum" width="100" headerAlign="center" align="center">药品编号</div>
				<div field="medicineName" width="100" headerAlign="center" align="center">药品名称</div>
				<div field="medicineUnit" width="100" headerAlign="center" align="center">单位</div>
				<div field="quantity" width="100" headerAlign="center" align="center">数量</div>
				<div field="createTime" dataType="date" dateFormat="yyyy-MM-dd HH:mm:ss" width="100" headerAlign="center" align="center">时间</div>
			</div>
		</div>
		</div>
    </div>
    <div title="库存盘点" >
        <div class="mini-fit">
		<div id="datagrid4" class="mini-datagrid" idField="id" pageSize="20" url="inventory_history_view.do" style="width:100%;height:100%;">
			<div property="columns" >
				<div type="indexcolumn"></div>
				<div field="medicineSerialNum" width="100" headerAlign="center" align="center">药品编号</div>
				<div field="medicineName" width="100" headerAlign="center" align="center">药品名称</div>
				<div field="medicineUnit" width="100" headerAlign="center" align="center">单位</div>
				<div field="quantity" width="100" headerAlign="center" align="center">数量变化</div>
				<div field="createTime" dataType="date" dateFormat="yyyy-MM-dd HH:mm:ss" width="100" headerAlign="center" align="center">时间</div>
			</div>
		</div>
		</div>
    </div>
</div>
<script type="text/javascript">
mini.parse();
var grid1 = mini.get("datagrid1");
var grid2 = mini.get("datagrid2");
var grid3 = mini.get("datagrid3");
var grid4 = mini.get("datagrid4");
var grid5 = mini.get("datagrid5");
//标准方法接口定义
function SetData(data) {
	//跨页面传递的数据对象，克隆后才可以安全使用
	data = mini.clone(data);
	grid1.load({medicineId: data.medicineId,warehouseId:data.warehouseId});
	grid2.load({medicineId: data.medicineId,warehouseId:data.warehouseId});
	grid3.load({medicineId: data.medicineId,warehouseId:data.warehouseId});
	grid5.load({medicineId: data.medicineId,warehouseId:data.warehouseId});
	grid4.load({medicineId: data.medicineId});
}
</script>
</body>
</html>